package com.it.hanzhongtravelv1.repository;

import com.it.hanzhongtravelv1.entity.Food;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface FoodRepository extends JpaRepository<Food, Long> {
    // 根据分类查找美食
    List<Food> findByCategory(String category);
    
    // 根据名称模糊查询
    List<Food> findByNameContaining(String name);
} 